package com.mf.entity.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 数据字典
 *
 * @author mf
 * @since 2024-08-23
 */
@Getter
@ToString
@Setter
@TableName("basic_data_dictionary")

public class BasicDataDictionaryBo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 字典名称
     */
    private String label;

    /**
     * 字典值
     */
    private String value;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 父级id
     */
    private Integer pid;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 编号
     */
    private String code;

    /**
     * 父级编号
     */
    private String pCode;


    /**
     * 可操作该条数据的角色id
     */
    private String editRoleId;

    /**
     * 备注
     */
    private String remark;
    /**
     * 0:所有用户可见；1:对应操作者(角色)可见
     */
    private Integer type;

    private LocalDateTime createdTime;

    private LocalDateTime updateTime;
}